import request from '@/utils/request'

const memberApi = {
  member_table: '/frontend/Membership/finds', // 会员已审核列表
  item_table: '/frontend/Itemship/finds', // 项目已审核列表
  examine_table: '/frontend/Membership/examineFinds', // 会员待审核列表
  examine_edit: '/frontend/Membership/examineEdit', // 会员审核通过
  item_edit: '/frontend/Itemship/examineEdit', // 项目审核通过
  status_edit: '/frontend/Membership/status', // 会员退会
  item_Status: '/frontend/Itemship/status', // 项目退会
  examine_delete: '/frontend/Membership/delete', // 删除会员待审核列表内数据
  unitem_delet: '/frontend/Itemship/delete', // 删除项目待审核列表内数据
  unitem_table: '/frontend/Itemship/examineFinds', // 项目待审核列表
  item_search: '/frontend/Itemship/passwordFind', // 项目密码查询
  member_search: '/frontend/Membership/passwordFind' // 会员密码查询
}
export function memberTable (parameter) {
  return request({
    url: memberApi.member_table,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function itemTable (parameter) {
  return request({
    url: memberApi.item_table,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function unitemTable (parameter) {
  return request({
    url: memberApi.unitem_table,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}

// 会员待审核列表
export function examineTable (parameter) {
  return request({
    url: memberApi.examine_table,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
// 会员审核
export function examineEdit (parameter) {
  return request({
    url: memberApi.examine_edit,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function itemEdit (parameter) {
  return request({
    url: memberApi.item_edit,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
// 退会与复会
export function statusEdit (parameter) {
  return request({
    url: memberApi.status_edit,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function itemStatus (parameter) {
  return request({
    url: memberApi.item_Status,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}

// 删除会员待审核列表内数据
export function examineDelete (parameter) {
  return request({
    url: memberApi.examine_delete,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}

// 删除项目待审核列表内数据
export function unitemDelete (parameter) {
  return request({
    url: memberApi.unitem_delet,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function itemSearch (parameter) {
  return request({
    url: memberApi.item_search,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function memberSearch (parameter) {
  return request({
    url: memberApi.member_search,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
